package com.yloveg.impl;
import java.util.Date;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.yloveg.dao.ShopInfoMapper;
import com.yloveg.dao.ShopWlMapper;
import com.yloveg.entity.ShopInfo;
import com.yloveg.entity.ShopInfoExtend;
import com.yloveg.entity.ShopWl;
import com.yloveg.service.ShopInfoService;
import com.yloveg.service.ShopWlService;

@Service
public class ShopWlServiceImpl implements ShopWlService {
 
	@Autowired
    private ShopWlMapper shopWlMapper;

	@Override
	public int insertShopWl(ShopWl shopWl) {
		// TODO Auto-generated method stub
		shopWl.setCreateDate(new Date());
		shopWl.setState(1);
		return shopWlMapper.insert(shopWl);
	}

	@Override
	public int updateByPrimaryKeySelective(ShopWl shopWl) {
		// TODO Auto-generated method stub
		shopWl.setUpdateDate(new Date());
		return shopWlMapper.updateByPrimaryKeySelective(shopWl);
	}

	@Override
	public ShopWl selectByPrimaryKey(Long id) {
		// TODO Auto-generated method stub
		return shopWlMapper.selectByPrimaryKey(id);
	}

	@Override
	public ShopWl selectByPrimary(ShopWl shopWl) {
		// TODO Auto-generated method stub
		return shopWlMapper.selectByPrimary(shopWl);
	}


}
